package com.skd.mall.order.fegin;

import com.skd.common.utils.R;
import com.skd.mall.order.vo.OrderItemSpuInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/*
* 确定访问远程服务的名字
* */
@FeignClient(name="mall-product")
public interface ProductService {
    /*
    * 调用方法
    * */
    @RequestMapping("/product/brand/all")
    public R feginTestQuery();

    @RequestMapping("/product/spuinfo/getOrderItemSpuInfoSpuId/{spuIds}")
    public List<OrderItemSpuInfoVo> getOrderItemSpuInfoSpuId(@PathVariable("spuIds") Long[] spuIds);
}
